package com.hrt.bean;

/***********************************************************************
 * Module:  SmsRecord.java
 * Author:  Administrator
 * Purpose: Defines the Class SmsRecord
 ***********************************************************************/

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/** 短信发送记录表
 * 
 * */
@Entity
@Table(name = "SMS_RECORD")
public class SmsRecord implements Serializable  {
	private static final long serialVersionUID = 1L;
/** 主键
    * 
    *
    */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "SMS_ID")
   private Long smsId;
   /** 发送时间
    * 
    * 
 */
	@Column(name = "SEND_TIME")
   private Timestamp sendTime;
   /** 发送状态
    *  0未发送 1已发送 -1发送失败
    * 
    */
	@Column(name = "STATUS")
   private Integer status;
   /** 接收手机
    * 
     */
	@Column(name = "BOBILE")
   private String mobile;
   /** 短信内容
    * 
    */
	@Column(name = "CONTENT")
   private String content;
   /** 验证码
    * 
     */
	@Column(name = "VALID_CODE")
   private String vaildCode;
   /** 会员ID
    * 
    */
	@Column(name = "MEMBER_ID")
   private Long memberId;
   /** 删除标记
    * 
    */
	@Column(name = "IS_DELETE")
   private Integer isdelete = 0;
   /** 相关业务
    * 0---》用户注册
    * 1---》找回密码
    * 2---》下单成功通知
    * 3---》发货通知
    */
	@Column(name = "BUS_TYPE")
   private String busType;
	/**
	 * 判断手机验证码是否可用的标志
	 * 0表示可用
	 * 1表示失效
	 */
	@Column(name = "IS_INVALID")
	private Integer isinvalid = 0;
   
   
   public Long getSmsId() {
      return smsId;
   }
   
   
   public void setSmsId(Long newSmsId) {
      smsId = newSmsId;
   }
 
   public Integer getIsinvalid() {
	return isinvalid;
}


public void setIsinvalid(Integer isinvalid) {
	this.isinvalid = isinvalid;
}


public Timestamp getSendTime() {
	return sendTime;
}


public void setSendTime(Timestamp sendTime) {
	this.sendTime = sendTime;
}


public Integer getStatus() {
      return status;
   }
   
   
   public void setStatus(Integer newStatus) {
      status = newStatus;
   }
   
   
   public String getMobile() {
      return mobile;
   }
   
  
   public void setMobile(String newMobile) {
      mobile = newMobile;
   }
   
  
   public String getContent() {
      return content;
   }
   
   
   public void setContent(String newContent) {
      content = newContent;
   }
   
   
   public String getVaildCode() {
      return vaildCode;
   }
   
  
   public void setVaildCode(String newVaildCode) {
      vaildCode = newVaildCode;
   }
   
  
   public Long getMemberId() {
      return memberId;
   }
   

  
   public void setMemberId(Long newMemberId) {
      memberId = newMemberId;
   }
   
  
   public Integer getIsdelete() {
      return isdelete;
   }
   
   
   public void setIsdelete(Integer newIsdelete) {
      isdelete = newIsdelete;
   }
   
  
   public String getBusType() {
      return busType;
   }
   
   
   public void setBusType(String newBusType) {
      busType = newBusType;
   }

}
